﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cloak.NUnit;
using NUnit.Framework;

namespace Ruleweaver.Conditions.ConditionKeys
{
	public class ApplyConditionKeyToTargetType : Behavior
	{
		private ConditionKey _key;

		protected override void Given()
		{}

		protected override void When()
		{
			_key = new ConditionKey(typeof(int));
		}

		[Then]
		public void AppliesToTargeType()
		{
			Assert.IsTrue(_key.AppliesTo(typeof(int)));
		}
	}
}